package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmMaterial;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author brianxia
 * @version 1.0
 * @date 2022-09-11 14:20
 */
@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    void insertBatch(@Param("materialIds") List<Integer> materialIds,
                     @Param("newsId") Integer newsId,
                     @Param("type") Short type);
}
